package com.sanyang.pda.adapter;

import androidx.annotation.Nullable;

import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.sanyang.pda.bean.ScanBean;
import com.sanyang.pda.bean.ScanDemoBean;
import com.wangshen.base.ui.mvp.base.adapter.BaseAdapter;
import com.wangshen.projectbase.R;

import java.util.List;

public class ScanDemoAdapter extends BaseAdapter<ScanDemoBean.InfoBean> {
    public ScanDemoAdapter(int layoutResId, @Nullable List<ScanDemoBean.InfoBean> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, ScanDemoBean.InfoBean item) {
        super.convert(helper, item);
        helper.setText(R.id.tv_title,item.getName());
        helper.setText(R.id.tv_shuhao,item.getIsbn());
        helper.setText(R.id.tv_shuliang,item.getNumber()+"本");
    }
}
